package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	var wordfreq = make(map[string]int)
	input := bufio.NewScanner(os.Stdin)
	input.Split(bufio.ScanWords)
	for input.Scan() {
		word := input.Text()
		if word == "end" {
			break
		}
		wordfreq[word]++
	}
	fmt.Println(wordfreq)
}
